<?php
namespace app\validate;

use think\Validate;

class Auth extends Validate
{
    protected $_rule = [
        'username' => 'require',
        'password' => 'require',
        'code'     => 'require',
        "id"       => "require",
    ];

    protected $_message = [
        'username.require' => '账号必填',
        'password.require' => '密码必填',
        'code'             => '验证码必填',
        "id"               => "验证码错误",
    ];
}
